package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface UserApi {

    /**
     * 浏览类型：0关注 1直播 2红木圈 3头条
     */
    int VIEW_TYPE_FOLLOW = 0;
    int VIEW_TYPE_LIVE = 1;
    int VIEW_TYPE_DYNAMIC = 2;
    int VIEW_TYPE_LEAD = 3;

    /**
     * 点赞/取消点赞
     */
    @PostMapping("user/thumbs")
    ResultModel thumbs(@RequestBody UserThumbsDto dto);

    /**
     * 浏览:保存
     */
    @PostMapping("user/view/save")
    ResultModel viewSave(@RequestBody UserViewSaveDto dto);

    /**
     * 浏览:查询
     */
    @PostMapping("user/view")
    ResultModel<UserViewVo> view(@RequestBody UserViewDto dto);


    /********************************** user ********************************************/

    @PostMapping("user/update/img/local")
    ResultModel updateImgLocal();

    @PostMapping("user/admin/list")
    ResultModel<UserAdminListVo> adminList(@RequestBody UserAdminListDto dto);

    @PostMapping("user/admin/save")
    ResultModel<UserAdminSaveVo> adminSave(@RequestBody UserAdminSaveDto dto);

    @PostMapping("user/save")
    ResultModel save(@RequestBody UserSaveDto dto);

    @PostMapping("user/merge")
    ResultModel merge(@RequestBody UserMergeDto dto);
}
